<%@ taglib prefix="t" tagdir="/WEB-INF/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<t:wrapper title="${title} ${courseName}">
	<jsp:body>
		<div id="navigation">
			<a href="javascript:history.back()">&laquo; <spring:message
					code="content.general.back" /></a>
		</div>
		<form method="post" id="new-post"
			action="<c:url value="/course/${courseId}/forum/${topicId}/add_post"/>"
			id="new-topic">
			<label class="label100p"><spring:message code="forum.post.postText" /></label>
			<textarea name="PostText" style="height: 250px; width: 492px;"></textarea>
				
			
			
			<label></label>
			<button type="submit">
				<spring:message code="forum.button.submit" />
			</button>
			 
		</form>
		<table style="width: 494px; margin: 0 auto; margin-top: 25px;">
			<c:forEach items="${posts}" var="post">
				<tr height="30px">
					<td style="border-right: 1px solid #ac0000; width: 100px;"><c:out value="${post.owner.firstName}" /> <c:out
							value="${post.owner.lastName}" /></td>
					<td style="padding: 3px;"><c:out value="${post.text}" /></td>
				</tr>
			</c:forEach>
		</table>
	</jsp:body>
</t:wrapper>